/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { RentDetail_ } from '../models/RentDetail_';
import type { Result } from '../models/Result';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class RentDetailControllerService {

    /**
     * adminManage
     * @param rentDetail rentDetail
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static adminManageUsingPost(
rentDetail: RentDetail_,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/rent-detail/adminManage',
            body: rentDetail,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listManage
     * @param detailId detailId
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static listManageUsingPost(
detailId?: Array<string>,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/rent-detail/listManage',
            query: {
                'detailId': detailId,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * ManageDetail
     * @returns Result OK
     * @throws ApiError
     */
    public static manageDetailUsingGet(): CancelablePromise<Result> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/rent-detail/manage',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * cutomerPay
     * @param id id
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static cutomerPayUsingPost(
id: string,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/rent-detail/pay/{id}',
            path: {
                'id': id,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
